package com.css.zfzx.sjcj.modules.qhdrilloverview.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhdrilloverview.repository.entity.QhDrillOverviewEntity;
import com.css.zfzx.sjcj.modules.qhdrilloverview.viewobjects.QhDrillOverviewQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author aa
 * @date 2020-11-11
 */

public interface QhDrillOverviewService {

    public JSONObject queryQhDrillOverviews(QhDrillOverviewQueryParams queryParams, int curPage, int pageSize);

    public JSONObject queryQhDrillOverviews(QhDrillOverviewQueryParams queryParams);

    public QhDrillOverviewEntity getQhDrillOverview(String id);

    public QhDrillOverviewEntity saveQhDrillOverview(QhDrillOverviewEntity qhDrillOverview);

    public QhDrillOverviewEntity updateQhDrillOverview(QhDrillOverviewEntity qhDrillOverview);

    public void deleteQhDrillOverviews(List<String> ids);

    public void submitQhDrillOverview(String ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String importExcel(MultipartFile file);

    String exportExcel(QhDrillOverviewQueryParams queryParams, HttpServletResponse response);

    String exportExcel(String ids, HttpServletResponse response);

    String exportExcel(List<QhDrillOverviewEntity> entities, HttpServletResponse response);

    JSONObject checkCoordinate(String ids);
}
